<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>onmousemove</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .bord{
            border: 1px dashed #ee2602;
            width: 90%;
            margin: 20px auto;
        }
        .title{
            font-size: 20px;
            font-weight: bold;
            margin: 20px;
        }
        .introduce{
            font-size: 16px;
            margin: 0 0 20px 50px;
        }
        .red{
            color: red;
        }
    </style>
</head>
<body>
<div class="bord">
    <div class="title">onmousemove</div>
    <div class="introduce">
         onmousemove 事件会在鼠标指针移动时发生。
    </div>
</div>
<div class="bord">
    <div class="title">演示效果</div>
    <p>鼠标移动图片区域</p>
    <br/>
    <img style="width: 200px;height: 200px;" src="../img/ax.jpg" alt="mouse"
         onmousemove="alert('您的鼠标刚才经过了图片！')" />
</div>
<div class="bord">
    <div class="title">代码</div>
    <div class="introduce">
        <pre>
    &lt;img style="width: 200px;height: 200px;" src="../img/ax.jpg" alt="mouse"
         onmousemove="alert('您的鼠标刚才经过了图片！')" /&gt;
        </pre>
    </div>
</div>
</body>
</html>